home *** CD-ROM | disk | FTP | other *** search
/ Space & Astronomy / Space and Astronomy (October 1993).iso / pc / _bbs / pcbtool / doit.bat < prev    next >
DOS Batch File  |  1993-08-30  |  657b  |  21 lines

  1. rem %1 == disc directory
  2. if exist %cdrom%%1\00_index.txt goto ok
  3. echo no such file: %cdrom%%1\00_index.txt >> logfile
  4. goto end
  5. :ok
  6. if exist %output%\%2.dir goto bad
  7. goto ok2
  8. :bad
  9. echo duplicate output file: %output%\%2.dir >> logfile
  10. goto end
  11. :ok2
  12. type %cdrom%\_bbs\pcbtool\header1 > %output%\%2.dir
  13. %cdrom%\_bbs\get_area hobbes 0 %1 < \_bbs\dirs.txt >> %output%\%2.dir
  14. echo path: %1 >> %output%\%2.dir
  15. type %cdrom%\_bbs\pcbtool\header2 >> %output%\%2.dir
  16. rem cd %cdrom%%1
  17. %cdrom%\_bbs\c %in_type% pcb %cdrom%%1 < %cdrom%%1\00_index.txt >> %output%\%2.dir
  18. rem cd %cdrom%\_bbs\pcbtool
  19. dirlst %output%\%2.dir %cdrom%%1\ %2 >> dir_lst
  20. :end
  21.